package com.weiyuwqj.server.service.account.module.action.sys;

import com.weiyuwqj.server.service.account.module.action.AbstractDealAction;
import com.weiyuwqj.api.constant.DealType;
import com.weiyuwqj.api.util.IpUtils;

import java.util.Date;

/**
 * 系统为用户充值充值
 */
public class PlatformForUserRechargeDealAction extends AbstractDealAction {

    public PlatformForUserRechargeDealAction() {
        log.setOperType(DealType.PLATFORM_FOR_USER_RECHARGE_SUCCESS);
    }

    @Override
    public void dealAccount() {
        log.setUsable(log.getOperMoney());
        log.setCash(log.getOperMoney());
        log.setAddtime(new Date());
        log.setAddip(IpUtils.get());
        log.setBudgetType(1);
    }

}
